import request from '@/utils/request'
import qs from 'qs';
export const tplls = (params: any) =>
  request({
    url: '/tpl/ls',
    method: 'get',
    params
  })
export const tplExists = (params: any) =>
  request({
    url: '/tpl/tpl-exists',
    method: 'get',
    params
  })

export const GetTplById = (params: any) =>
  request({
    url: '/tpl/get-tpl-id',
    method: 'get',
    params
  })
export const TplStd = (params: any) =>
  request({
    url: '/tpl/tpl-std',
    method: 'get',
    params
  })
export const DisePath = (params: any) =>
  request({
    url: '/tpl/dise-path',
    method: 'get',
    params
  })

export const delTpls = (params: any) =>
  request({
    url: '/tpl/del-tpls',
    method: 'post',
    params
  })
export const copyTpl = (params: any) =>
  request({
    url: '/tpl/cp-tpl',
    method: 'post',
    data: qs.stringify(params)
  })


export const stdCost = (params: any) =>
  request({
    url: '/tpl/std-cost',
    method: 'get',
    params
  })


export const ljdir = (params: any) =>
  request({
    url: '/tpl/lj-dir',
    method: 'get',
    params
  })


export const ljVersion = (params: any) =>
  request({
    url: '/tpl/lj-version',
    method: 'get',
    params
  })


export const ljCheckVersion = (params: any) =>
  request({
    url: '/tpl/lj-check-version',
    method: 'get',
    params
  })

export const forms = (params: any) =>
  request({
    url: '/tpl/forms',
    method: 'get',
    params
  })
export const tplFormId = (params: any) =>
  request({
    url: '/tpl/tpl-form-id',
    method: 'get',
    params
  })


export const lcljml = (params: any) =>
  request({
    url: '/tpl/lcljml',
    method: 'get',
    params
  })


export const tplForm = (params: any) =>
  request({
    url: '/tpl/tpl-form',
    method: 'post',
    data: params
  })


export const desotryForm = (params: any) =>
  request({
    url: '/tpl/desotry-form',
    method: 'get',
    params
  })
//auto-complete

export const autoComplete = (params: any) =>
  request({
    url: '/tpl/auto-complete',
    method: 'get',
    params
  })

  export const drgWeightLs = (params: any) =>
  request({
    url: '/tpl/drg-weight-ls',
    method: 'get',
    params
  })



